{$_model = "site"}
{Model model="Intro" method="getLastImages"}

<script type="text/javascript">
<!--
    var Images = new Array(
{foreach $images item=i name=bar}    
    '/intro/{$i}' {if count($images)!=$smarty.foreach.bar.index+1},{/if}    
{/foreach}
    );
    $('.background').attr('looped','true');        
    $('.background').LoopedGallery(Images);    
 //-->
</script>
{**<div class="logo"></div>**}